package com.dx.common.table.ppt;

/**
 * Ret_tool_st_rlnId entity. @author MyEclipse Persistence Tools
 */

public class Ret_tool_st_rlnId implements java.io.Serializable {

	// Fields    

	private String sour_tool_id_fk;
	private String dest_tool_id_fk;
	private String rln_stat;

	// Constructors

	/** default constructor */
	public Ret_tool_st_rlnId() {
	}

	/** full constructor */
	public Ret_tool_st_rlnId(String sour_tool_id_fk, String dest_tool_id_fk, String rln_stat) {
		this.sour_tool_id_fk = sour_tool_id_fk;
		this.dest_tool_id_fk = dest_tool_id_fk;
		this.rln_stat = rln_stat;
	}

	// Property accessors

	public String getSour_tool_id_fk() {
		return this.sour_tool_id_fk;
	}

	public void setSour_tool_id_fk(String sour_tool_id_fk) {
		this.sour_tool_id_fk = sour_tool_id_fk;
	}

	public String getDest_tool_id_fk() {
		return this.dest_tool_id_fk;
	}

	public void setDest_tool_id_fk(String dest_tool_id_fk) {
		this.dest_tool_id_fk = dest_tool_id_fk;
	}

	public String getRln_stat() {
		return this.rln_stat;
	}

	public void setRln_stat(String rln_stat) {
		this.rln_stat = rln_stat;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Ret_tool_st_rlnId))
			return false;
		Ret_tool_st_rlnId castOther = (Ret_tool_st_rlnId) other;

		return ((this.getSour_tool_id_fk() == castOther.getSour_tool_id_fk()) || (this.getSour_tool_id_fk() != null
				&& castOther.getSour_tool_id_fk() != null && this.getSour_tool_id_fk().equals(castOther.getSour_tool_id_fk())))
				&& ((this.getDest_tool_id_fk() == castOther.getDest_tool_id_fk()) || (this.getDest_tool_id_fk() != null
						&& castOther.getDest_tool_id_fk() != null && this.getDest_tool_id_fk().equals(
						castOther.getDest_tool_id_fk())))
				&& ((this.getRln_stat() == castOther.getRln_stat()) || (this.getRln_stat() != null
						&& castOther.getRln_stat() != null && this.getRln_stat().equals(castOther.getRln_stat())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getSour_tool_id_fk() == null ? 0 : this.getSour_tool_id_fk().hashCode());
		result = 37 * result + (getDest_tool_id_fk() == null ? 0 : this.getDest_tool_id_fk().hashCode());
		result = 37 * result + (getRln_stat() == null ? 0 : this.getRln_stat().hashCode());
		return result;
	}

}